package com.fm.parser.excel;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class ExcelRowConverter {
	private List<String> keys;

	public ExcelRowConverter(List<String> keys) {
		this.keys = keys;
	}

	public List<?> getFirstRow() {
		return keys;
	}

	public List<?> getOtherRow(Map<String, Object> map) {
		List<Object> row = new LinkedList<>();
		for(String key : keys) {
			row.add(map.get(key));
		}
		return row;
	}
}
